package com.lagou.module4.work03;

public class TicketRunnable3 implements Runnable{

    private Ticket ticket;

    public TicketRunnable3(Ticket ticket) {
        this.ticket = ticket;
    }

    @Override
    public void run() {
        while(true){
            ticket.saleTickets();
        }
    }
}
